initial support for building linux kernel with buildrump.sh#78
Open
thehajime wants to merge 1 commit intorumpkernel:masterfrom
Open
initial support for building linux kernel with buildrump.sh#78thehajime wants to merge 1 commit intorumpkernel:masterfrom
thehajime wants to merge 1 commit intorumpkernel:masterfrom
Conversation
f91e6ac to
efd6c75
Compare
Author
|
I have cleaned up, refactored/rebased, rewritten the commit message, and travis script to raise this PR up again. To summarize, I followed @anttikantee's suggestion (below) to not treat an alternate rump kernel as a second-class citizen. The split files (netbsd.sh and linux.sh) from the main script are for the purpose, but still leave the default build to NetBSD rump kernel as it was. http://www.freelists.org/post/rumpkernel-users/2-PRs-for-Linux-kernel-with-rump-hypercall,1 I will fill another PR to rumprun later. |
d3402b4 to
5a1633f
Compare
thehajime
added a commit
to libos-nuse/frankenlibc
that referenced
this pull request
Mar 21, 2017
Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
039d9be to
294a478
Compare
This commit introduces a new options for buildrump.sh, which is '-l' option to specify which rumpkernel (netbsd or linux) is used (default: netbsd). Linux kernel is based on Linux Kernel Library (LKL) with non-upstreamed patches to implement with rump hypercall interfaces. Since LKL is not yet upstreamed to Linus tree and development is still ongoing, the commit tries to minimize future modifications to this script (buildrump.sh) by specifying interfaces to build Linux kernel. The new rumpkernel support involves the script structure refactor to split each rumpkernel dependent commands into separate files (netbsd.sh and linux.sh). Currently, when '-l' option is specified, NetBSD rump kernel code will be also built in addition to Linux kernel build since Linux part requires headers files (i.e., include/rump) to build it. A few more travis tests are also added though it's only build tests and no execution tests for Linux at this moment though. Plus, clang build is marked as 'allow_failure' since Linux kernel isn't able to build with clang so far. There are still a couple of limitations: - LKL_SRCDIR is hardcoded, which uses the current dir of the (root) script. - only build with standalone buildrump.sh. standalone execution (i.e., without rumprun or frankenlibc) are not implemented since LKL itself has to do it. - thus, no standalone test are implemented either. Signed-off-by: Hajime Tazaki <thehajime@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new options for buildrump.sh, which is '-l'
option to build Linux kernel. Linux kernel is based on Linux Kernel
Library (LKL) with not-upstreamed patches to implement with rump
hypercall interfaces.
Since LKL is not yet upstreamed and development is still ongoing, the
commit tries to minimize future modifications to this script
(buildrump.sh) by specifying interfaces to build Linux kernel.
Currently, when '-l' option is specified, NetBSD rump kernel code will
be also built in addition to Linux kernel build since Linux part
requires headers files (i.e., include/rump) to build it.
A few more travis tests are also added though it's only build tests at
this moment though.
Signed-off-by: Hajime Tazaki thehajime@gmail.com